using UnityEngine;

namespace Core
{
    public class Node : IDispose
    {
        public int X;
        public int Y;

        public int Weight;

        public float HCost;
        public float GCost;

        public float FCost => GCost + HCost;

        public Node ParentNode;
        public bool IsWalkable = true;

        public Vector2Int Point => new(X, Y);


        public Node() { }

        public Node(int posx, int posy)
        {
            X = posx;
            Y = posy;
        }

        public void Dispose() { }
    }
}
